package com.hyh.facade;

import com.hyh.model.CDPlayer;
import com.hyh.model.Light;

public class HomeTheaterFacade {

	CDPlayer cdPlayer;
	Light light;
	
	public HomeTheaterFacade(CDPlayer cdPlayer, Light light) {
		super();
		this.cdPlayer = cdPlayer;
		this.light = light;
	}
	
	public void watchMovie(){
		light.close();
		cdPlayer.open();
	}
	
	public void endMovie(){
		light.open();
		cdPlayer.close();
	}
	
}
